package graph;

public class Circle extends Graph {
    public int r;

    // 面积
    public void getArea() {
        System.out.println("圆面积：" + (Math.PI * this.r * this.r));
    }

    // 周长
    public void primeter() {
        System.out.println("圆周长：" + (Math.PI * this.r * 2));
    }

    public Circle() {

    }

    public Circle(int r) {
        this.r = r;
    }
}
